package com.kaiji.controller;


import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.kaiji.entity.AuthorEntity;
import com.kaiji.service.AuthorService;

@RestController
public class UserController{

	@Resource(name = "authorServiceImpl")
	AuthorService authorService;
	
	@GetMapping("/hello.html")
	public String hello() {
		return "hello";
	}
	
	@GetMapping("/getById.html")
	public AuthorEntity selectById(String id) {
		return authorService.selectById(id);
	}
}
